Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-39330: [Java][CI] Fix or suppress spurious errorprone warnings #39529

Merged
merged 23 commits into from
Jan 23, 2024

Conversation

vibhatha
Copy link
Collaborator

@vibhatha vibhatha commented Jan 9, 2024

Rationale for this change

This PR fixes the warnings generated by the errorprone library.

What changes are included in this PR?

Updating the code to remove warnings.

Covered modules

  • algorithm
  • compression
  • flight
  • tools
  • vector

Are these changes tested?

Tested by existing test cases.

Are there any user-facing changes?

No

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: 4d87301

Submitted crossbow builds: ursacomputing/crossbow @ actions-4547e26b60

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: 85c5f9f

Submitted crossbow builds: ursacomputing/crossbow @ actions-f76ced9dc5

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: 5226173

Submitted crossbow builds: ursacomputing/crossbow @ actions-04546ec6e4

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: c09a3d8

Submitted crossbow builds: ursacomputing/crossbow @ actions-053fa63473

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: 8499caf

Submitted crossbow builds: ursacomputing/crossbow @ actions-7a3a344533

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: 57445c6

Submitted crossbow builds: ursacomputing/crossbow @ actions-bde21cc636

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: 70e9efa

Submitted crossbow builds: ursacomputing/crossbow @ actions-076ac97685

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Only contributors can submit requests to this bot. Please ask someone from the community for help with getting the first commit in.
The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/7552386532

@vibhatha
Copy link
Collaborator Author

Since this PR is already too long, I will be creating a follow up PR to fix the warnings in the following modules

  1. adapter
  2. c
  3. dataset
  4. format
  5. gandiva
  6. maven
  7. memory
  8. performance

Will be addressed here: #39649

@vibhatha vibhatha marked this pull request as ready for review January 17, 2024 07:56
@lidavidm
Copy link
Member

At the end of this we should also be making warnings into errors so that these don't come back up.

@vibhatha
Copy link
Collaborator Author

Agreed @lidavidm. Probably need to complete the follow up PR to do that. Also what would be the best way to fail builds with warnings?

@jorisvandenbossche
Copy link
Member

@github-actions crossbow submit java

Copy link

Revision: 56a95fd

Submitted crossbow builds: ursacomputing/crossbow @ actions-e636476297

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@lidavidm
Copy link
Member

Agreed @lidavidm. Probably need to complete the follow up PR to do that. Also what would be the best way to fail builds with warnings?

Pass -Werror to javac in maven

@github-actions github-actions bot removed the awaiting review Awaiting review label Jan 17, 2024
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jan 22, 2024
@vibhatha
Copy link
Collaborator Author

@lidavidm addressed the reviews, but there are some open questions. Appreciate your feedback.

@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: 190e6df

Submitted crossbow builds: ursacomputing/crossbow @ actions-142142f8e6

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting change review Awaiting change review labels Jan 22, 2024
@lidavidm
Copy link
Member

The only thing I have is to fix the exception message

@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jan 23, 2024
@vibhatha
Copy link
Collaborator Author

@github-actions crossbow submit java

Copy link

Revision: c1cb671

Submitted crossbow builds: ursacomputing/crossbow @ actions-a48ea38acd

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Jan 23, 2024
@lidavidm lidavidm merged commit ae9c0a9 into apache:main Jan 23, 2024
15 checks passed
@lidavidm lidavidm removed the awaiting merge Awaiting merge label Jan 23, 2024
Copy link

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit ae9c0a9.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…gs (apache#39529)

### Rationale for this change

This PR fixes the warnings generated by the errorprone library. 

### What changes are included in this PR?

Updating the code to remove warnings. 

Covered modules
- [x] algorithm
- [x] compression
- [x] flight
- [x] tools
- [x] vector 

### Are these changes tested?

Tested by existing test cases.

### Are there any user-facing changes?

No
* Closes: apache#39330

Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Feb 28, 2024
…gs (apache#39529)

### Rationale for this change

This PR fixes the warnings generated by the errorprone library. 

### What changes are included in this PR?

Updating the code to remove warnings. 

Covered modules
- [x] algorithm
- [x] compression
- [x] flight
- [x] tools
- [x] vector 

### Are these changes tested?

Tested by existing test cases.

### Are there any user-facing changes?

No
* Closes: apache#39330

Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
thisisnic pushed a commit to thisisnic/arrow that referenced this pull request Mar 8, 2024
…gs (apache#39529)

### Rationale for this change

This PR fixes the warnings generated by the errorprone library. 

### What changes are included in this PR?

Updating the code to remove warnings. 

Covered modules
- [x] algorithm
- [x] compression
- [x] flight
- [x] tools
- [x] vector 

### Are these changes tested?

Tested by existing test cases.

### Are there any user-facing changes?

No
* Closes: apache#39330

Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
lidavidm pushed a commit that referenced this pull request Mar 20, 2024
### What changes are included in this PR?

Removing static imports of UTF_8. This has been identified as a minor enhancement as documented here: #39752 and discussed in a review [here](#39529 (comment)). 

### Are these changes tested?

Tested by existing test cases. 

### Are there any user-facing changes?

No
* GitHub Issue: #39752

Authored-by: Vibhatha Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Java][CI] Fix or suppress spurious errorprone warnings
3 participants